"use client"; import { FC, PropsWithChildren, useState } from "react"; import clsx from "clsx"; import ButtonOwn from "@/components/ButtonOwn"; import "./style.scss"; /** * @description 登录注册From表单 * @param {string} type 使用类型 * @param {() => void} callbackFun 回调方法 */ export interface FromComProps { type?: string; text?: string; callbackFun?: () => void; } const FromCom: FC> = ({type = 'login', callbackFun}) => { let [visible, setVisible] = useState(false) const spanClassName = clsx("iconfont", { "icon-kejian": visible, "icon-bukejian": !visible, }); return (
+55
setVisible(!visible)}>
O número de telefone não existe.
{type == 'login'? 'Login' : 'Criar conta'}
{ type == 'login' ? ( <> Esqueci minha senha? Criar Conta Nova ) : Já tem uma conta? Log in }
); }; export default FromCom;